package com.tjbklx1.rabbitmq.demo11.code;

import java.io.IOException;

/**
 * 序列化和反序列化的工厂
 * 
 * @author Administrator
 * 
 */
public interface CodecFactory {
	byte[] serialize(Object obj) throws IOException;

	Object deSerialize(byte[] in) throws IOException;
}
